org.eclipse.vtp.desktop.editors.core.impl
Class ApplicationFragmentEditor

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.EditorPart
              extended by org.eclipse.vtp.desktop.editors.core.impl.ApplicationFragmentEditor
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation, ControllerListener, DialogContainer, RenderedModelListener, CanvasBrowserContentProvider

public class ApplicationFragmentEditor
extends org.eclipse.ui.part.EditorPart
implements ControllerListener, RenderedModelListener, DialogContainer, CanvasBrowserContentProvider


Nested Class Summary
 class ApplicationFragmentEditor.DefaultElementResolver
           
 
Field Summary
 
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
ApplicationFragmentEditor()
           
 
Method Summary
 IconicCanvas addCanvas(java.lang.String name)
           
 RenderedModel addDialog(java.lang.String id, java.net.URL template)
           
 void addListener(CanvasBrowserContentProviderListener listener)
           
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void deleteCanvas(IconicCanvas canvas)
           
 void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void doSaveAs()
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 void graphicUpdate(int x, int y, int width, int height, boolean inProgress)
           
 void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
           
 boolean isDirty()
           
 boolean isSaveAsAllowed()
           
 java.util.List listCanvases()
           
 void removeListener(CanvasBrowserContentProviderListener listener)
           
 void renderedModelChanged(RenderedModel renderedModel)
           
 void selectCanvas(IconicCanvas canvas)
           
 void selectionChanged(SelectionStructure selection)
           
 void setFocus()
           
 boolean supportsMultipleCanvases()
           
 
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, removePropertyListener
 

Constructor Detail

ApplicationFragmentEditor

public ApplicationFragmentEditor()
Method Detail

init

public void init(org.eclipse.ui.IEditorSite site,
                 org.eclipse.ui.IEditorInput input)
          throws org.eclipse.ui.PartInitException
Specified by:
init in interface org.eclipse.ui.IEditorPart
Specified by:
init in class org.eclipse.ui.part.EditorPart
Throws:
org.eclipse.ui.PartInitException

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart

isDirty

public boolean isDirty()
Specified by:
isDirty in interface org.eclipse.ui.ISaveablePart
Specified by:
isDirty in class org.eclipse.ui.part.EditorPart

doSave

public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
doSave in interface org.eclipse.ui.ISaveablePart
Specified by:
doSave in class org.eclipse.ui.part.EditorPart

isSaveAsAllowed

public boolean isSaveAsAllowed()
Specified by:
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePart
Specified by:
isSaveAsAllowed in class org.eclipse.ui.part.EditorPart

doSaveAs

public void doSaveAs()
Specified by:
doSaveAs in interface org.eclipse.ui.ISaveablePart
Specified by:
doSaveAs in class org.eclipse.ui.part.EditorPart

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

graphicUpdate

public void graphicUpdate(int x,
                          int y,
                          int width,
                          int height,
                          boolean inProgress)
Specified by:
graphicUpdate in interface ControllerListener

renderedModelChanged

public void renderedModelChanged(RenderedModel renderedModel)
Specified by:
renderedModelChanged in interface RenderedModelListener

selectionChanged

public void selectionChanged(SelectionStructure selection)
Specified by:
selectionChanged in interface ControllerListener

addDialog

public RenderedModel addDialog(java.lang.String id,
                               java.net.URL template)
Specified by:
addDialog in interface DialogContainer

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Overrides:
getAdapter in class org.eclipse.ui.part.WorkbenchPart

addListener

public void addListener(CanvasBrowserContentProviderListener listener)
Specified by:
addListener in interface CanvasBrowserContentProvider

listCanvases

public java.util.List listCanvases()
Specified by:
listCanvases in interface CanvasBrowserContentProvider

removeListener

public void removeListener(CanvasBrowserContentProviderListener listener)
Specified by:
removeListener in interface CanvasBrowserContentProvider

selectCanvas

public void selectCanvas(IconicCanvas canvas)
Specified by:
selectCanvas in interface CanvasBrowserContentProvider

addCanvas

public IconicCanvas addCanvas(java.lang.String name)
Specified by:
addCanvas in interface CanvasBrowserContentProvider

deleteCanvas

public void deleteCanvas(IconicCanvas canvas)
Specified by:
deleteCanvas in interface CanvasBrowserContentProvider

supportsMultipleCanvases

public boolean supportsMultipleCanvases()
Specified by:
supportsMultipleCanvases in interface CanvasBrowserContentProvider